package com.kelvin.paopao.injector.modules;

import com.kelvin.paopao.injector.PerActivity;
import com.kelvin.paopao.module.market.market.takeorder.TakeOrderActivity;
import com.kelvin.paopao.module.market.market.takeorder.TakeOrderPresenter;
import com.kelvin.paopao.module.market.wallet.charge.ChargeActivity;
import com.kelvin.paopao.module.market.wallet.charge.IWalletChargePresenter;
import com.kelvin.paopao.module.market.wallet.charge.WalletChargePresenter;

import dagger.Module;
import dagger.Provides;

/**
 * Created by MCK on 2017/5/23.
 */

@Module
public class TakeOrderModule {
    private TakeOrderActivity mView;

    public TakeOrderModule(TakeOrderActivity view) {
        this.mView = view;
    }

    @PerActivity
    @Provides
    public TakeOrderPresenter providePresenter() {
        return new TakeOrderPresenter(mView);
    }
}
